#ifndef __VTOR_MAP_H__
#define __VTOR_MAP_H__

#ifdef __cplusplus
extern "C" {
#endif

#include "vtor_game_cfg.h"

#ifdef __VTOR_MAP__


typedef struct
{
	int8_t* data;
	
	int16_t width;
	int16_t height;
}VtorBitMap;

typedef struct
{
	int8_t* data;
	
	int16_t width;
	int16_t height;
	// int16_t deep; // 3维情况下，使用深度
}VtorMap;

int8_t VtorBitMap_GetElement(VtorBitMap* map, int x, int y);
void VtorBitMap_SetElement(VtorBitMap* map, int x, int y, int8_t element);
void VtorBitMap_Fill(VtorBitMap* map, int8_t element);
void VtorBitMap_Draw(VtorBitMap* map);


int8_t VtorMap_GetElement(VtorMap* map, int x, int y);
void VtorMap_SetElement(VtorMap* map, int x, int y, int8_t element);
void VtorMap_Fill(VtorMap* map, int8_t element);
void VtorMap_Draw(VtorMap* map);



#endif // __VTOR_MAP__

#ifdef __cplusplus
}
#endif

#endif
